<?php
/* @var $this BaigiangController */
/* @var $data BaiGiang */
?>

<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('linkurl')); ?>:</b>
	<?php echo $data->linkurl?CHtml::link('View', Utils::createAbsoluteUrl($data->linkurl), array('target'=>'_blank')):''; ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('creator')); ?>:</b>
	<?php echo CHtml::encode(User::model()->findByPk($data->creator)->username); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('createdTime')); ?>:</b>
	<?php echo CHtml::encode($data->createdTime); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('modifiedTime')); ?>:</b>
	<?php echo CHtml::encode($data->modifiedTime); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('khoihocId')); ?>:</b>
	<?php echo CHtml::encode(KhoiHoc::model()->findByPk($data->khoihocId)->name); ?>
	<br />
        
        <b><?php echo CHtml::encode($data->getAttributeLabel('monhocId')); ?>:</b>
	<?php echo CHtml::encode(MonHoc::model()->findByPk($data->monhocId)->name); ?>
	<br />

	<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('monhocId')); ?>:</b>
	<?php echo CHtml::encode($data->monhocId); ?>
	<br />

	*/ ?>

</div>